<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition template="./template/layout.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
	<ui:define name="conteudo">
<div style="margin: 40px 0 0 0;">
<h:form>
<p:fieldset legend="Biblioteca Virtual IDEZ - Cadastro de Editora" style="margin: 10px 150px 0 150px;">
<p:panelGrid id="CadUser" columns="2" style="margin: 0 10px 0 150px;">
	
			<h:outputText value="Nome: "/>
			<p:inputText value="#{editoraBEAN.editora.nome}"/>
			<f:facet name="footer">
	            <p:commandButton value="Cadastrar" icon="ui-icon-star" action="#{editoraBEAN.cadastrarEditora()}" ajax="false" rendered="#{editoraBEAN.btnCadastrar}"/>
	            <p:commandButton value="Salvar" icon="ui-icon-disk"
							action="#{editoraBEAN.salvarEditora()}" ajax="false" rendered="#{editoraBEAN.btnSalvar}"/>
	            <p:commandButton value="Limpar" icon="ui-icon-eraser" action="#"/>
	            <p:commandButton value="Cancelar" icon="ui-icon-eraser"
							action="#{editoraBEAN.cancelar()}" ajax="false" />
			</f:facet>
	</p:panelGrid>
</p:fieldset>
</h:form>
<h:form>
			<p:growl id="msg" globalOnly="true" showDetail="true"/>
		</h:form>
</div>
	</ui:define>
</ui:composition>